sum of array elements in c